All Questions
4 questions
0votes
2answers
322views
Is it bad to use checked exceptions as API response?
Consider the following code: public class User { private String password; public void changePassword( String oldPassword, String newPassword) throws ...
-1votes
1answer
752views
Exposing java service as static method or seam dependency
Our legacy application provide a static method public static boolean persist(Data data) for service/class callers for data persistence. I do see unit testing issue for callers. Is this also an ...
0votes
1answer
2kviews
The usefulness of java util classes to call a service (to create a model) as opposed to using that services's impl
Example I will explain the paradigm below but I am specifically talking about Liferay's Service Builder code for anyone who knows that platform. Basically in Liferay you can definite a model and it'...
1vote
2answers
1kviews
Polymorphic constants in Java
I am designing some polymorphic code to perform mathematical operations. The idea is to abstract out the underlying representation of the data, as different use cases require different representations....